import request from '@/utils/request'

/**
 * 获取帖子列表
 */
export function getArticleList() {
  return request({
    url: '/article/getArticleList',
    method: 'get'
  })
}

/**
 * 发表帖子
 */
export function addArticle(data) {
  return request({
    url: '/article/addArticle',
    method: 'post',
    data
  })
}
